var buffer1 = Buffer.from('菜鸟教程');
var buffer2 = Buffer.from('www.runoob.com');
var buffer3 = Buffer.concat([buffer1,buffer2],20);//限制长度
console.log("buffer3 内容: " + buffer3.toString());